<?php
/**
 * @name SoftRank Plugin Center for Discuz! 7.2.0 GBK
 * @copyright 2008-2009 SoftRank Research Center
 * @author http://www.softrank.net
 * @version 1.0.0.0
 */
//require_once './include/common.inc.php';
require_once DISCUZ_ROOT.'./plugins/sr_plugincenter/include/runtime.inc.php'; //Runtime
/*
$lang : from the language file
$p_user : information about the plugin user
$p_center : information about the plugin center
*/

$p_user_array = $p_user->ToArray();
$p_center_array = $p_center->ToArray();

if ($p_center->allow_d_to_p && $p_center->allow_p_to_d)
{
	$exchange_rule = $lang['free_exchange'];
}
else
{
	if ($p_center->allow_d_to_p)
	{
		$exchange_rule = $lang['d_to_p_only'];
	}
	else if ($p_center->allow_p_to_d)
	{
		$exchange_rule = $lang['d_to_p_only'];
	}
	else
	{
		$exchange_rule = $lang['no_exchange'];
	}
}

include language('sr_plugincenter_index');
MergeLanguageArray(); //Language file must be merged before including another language pack.
//Include the language file.
include template('sr_plugincenter_index');

?>